export default [
  {
    path: '/sys',
    name: 'sys-manage',
    meta: {
      title: '系统',
      icon: 'desktop-outlined'
    },
    redirect: '/sys/setting',
    component: () => import('@/components/Layout/CommonLayout.vue'),
    children: [
      {
        path: '/sys/setting',
        name: 'sys-setting',
        meta: {
          title: '系统设置',
          keepAlive: true,
          icon: 'database-outlined'
        },
        component: () => import('@/views/system/setting/index.vue'),
      },
      {
        path: '/sys/menu/list',
        name: 'menu-list',
        meta: {
          title: '菜单列表',
          keepAlive: true,
          icon: 'file-text-outlined'
        },
        component: () => import('@/views/system/menu/list.vue'),
      },
      {
        path: '/sys/dict/list',
        name: 'dict-list',
        meta: {
          title: '字典类型列表',
          keepAlive: true,
          icon: 'calendar-outlined'
        },
        component: () => import('@/views/system/dict/list.vue'),
      },
      {
        path: '/sys/dict/dataList',
        name: 'dict-dataList',
        meta: {
          title: '字典列表',
          keepAlive: true,
          toRoute: 'dict-list'
        },
        hidden: true,
        component: () => import('@/views/system/dict/dataList.vue'),
      },
    ],
  },
];
